package STUDENT.NGUYENSANG.OOPs.EX2_TamGiac;

public class ConTroller {
	Tinh T=new Tinh();
	public boolean Check(Canh C)
	{
		if(C.getSide1()+C.getSide2()<C.getSide3()
				|| C.getSide2()+C.getSide3()<C.getSide1()
				|| C.getSide1()+C.getSide3()<C.getSide2())
		{
			return false;
		}
		return true;
	}
	public int Perimeter(Canh C)
	{
		return T.Chuvi(C);
	}
	public double Area(Canh C)
	{
		return T.DienTich(C);
	}
}
